package ar.edu.unlp.info.tesis.domain;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.codehaus.jackson.annotate.JsonTypeName;

/**
 * El actor puede representar a un agente o a un grupo.
 * 
 * https://github.com/adlnet/xAPI-Spec/blob/master/xAPI.md#actor
 * 
 * 
 */
@Entity
@Table(name="Actor")
@DiscriminatorValue("AGENT")

@JsonTypeName("AGENT")

public class Agent extends Actor{

	private transient String mbox;
	
	@Column(name = "MBOX")
	public String getMbox() {
		return mbox;
	}

	public void setMbox(String mbox) {
		this.mbox = mbox;
	}

	@Override
	@Transient
	public String getObjectType() {
		return StatementObject.AGENT;
	}
}
